/*
 * Copyright (C) 2016 Facishare Technology Co., Ltd. All Rights Reserved.
 */
package com.wlh.animation;

import java.net.DatagramSocketImpl;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.text.InputType;
import android.view.Gravity;
import android.widget.EditText;
import android.widget.LinearLayout;

/**
 * @author weilh
 *         <b>DATE</b> 2016/8/10.
 */
public class ScrollEditViewAct extends AppCompatActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_scroll_editview);
        LinearLayout textGroup = (LinearLayout) findViewById(R.id.text_layout);
        for (int i = 0; i < 100; i++) {
            EditText editText = new EditText(this);
            editText.setTextSize(20);
            editText.setMaxLines(3);
            editText.setGravity(Gravity.TOP);
            editText.setLines(3);
            editText.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
                    LinearLayout.LayoutParams.WRAP_CONTENT));
            textGroup.addView(editText);
        }
    }
}
